
NAME = greengrid

all: main 

main:
	latex $(NAME)
	bibtex $(NAME)
	latex $(NAME)
	latex $(NAME)
	dvips $(NAME) -o $(NAME).ps
	dvipdfm $(NAME).dvi 

cameraready:
	latex $(NAME)
	bibtex $(NAME)
	latex $(NAME)
	latex $(NAME)
	dvips -Ppdf -G0 $(NAME) -o $(NAME).ps
	ps2pdf14 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true $(NAME).ps

view: main
	gv $(NAME).ps &

html: all
	latex2html -local_icons -image_type gif -info 0 -split 5 $(NAME)

wc:
	detex $(NAME) | wc

clean:
	rm -f *~ $(NAME).aux $(NAME).bbl $(NAME).blg $(NAME).dvi $(NAME).ps $(NAME).pdf $(NAME).log
